package com.fs.ibox.service.impl;

import com.fs.ibox.dao.IdCollectionDao;
import com.fs.ibox.pojo.IdCollection;
import com.fs.ibox.service.IdCollectionService;
import com.fs.ibox.util.BeanFactory;

public class IdCollectionServiceImpl implements IdCollectionService {
    IdCollectionDao idCollectionDao = BeanFactory.createBean(IdCollectionDao.class);

    @Override
    public void updateState(String username, String user, String cname, String cid) {
        IdCollectionDao bean = BeanFactory.createBean(IdCollectionDao.class);
        bean.updateState(username, user, cname, cid);
    }
    @Override
    public void addIdcollection(IdCollection idCollection) {
        idCollectionDao.addIdcollection(idCollection);
    }
}
